import request from "@/utils/request";

export function getTeamByPage(query) {
  return request({
    url: `/system/team/getTeamByPage`,
    method: "post",
    data: query,
  });
}

// 增加流程模型

export function addTeam(query) {
  return request({
    url: `/system/team/addTeam`,
    method: "post",
    data: query,
  });
}
/**
 *
 * @param {*} query
 * @returns
 */
export function delTeam(query) {
  return request({
    url: `/system/team/delTeam`,
    method: "post",
    data: query,
  });
}

export function updateTeam(query) {
  return request({
    url: `/system/team/updateTeam`,
    method: "post",
    data: query,
  });
}

/**
 * 获取用户基本信息
 * @param {*} query
 * @returns
 */
export function selectUserListByTeam(query) {
  return request({
    url: `/system/user/selectUserListByTeam`,
    method: "post",
    data: query,
  });
}
/**
 * 代码修改提交
 * @param {*} query
 * @returns
 */
export function getUserByTeamId(query) {
  return request({
    url: `/system/team/getUserByTeamId`,
    method: "post",
    data: query,
  });
}

export function addTeamUser(query) {
  return request({
    url: `/system/team/addTeamUser`,
    method: "post",
    data: query,
  });
}

export function getUserNameByTeamId(query) {
  return request({
    url: `/system/team/getUserNameByTeamId`,
    method: "post",
    data: query,
  });
}
